package sg.edu.nus.dashboard.advisor.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import sg.edu.nus.dashboard.advisor.control.command.GetAdviceCommand;
	import sg.edu.nus.dashboard.advisor.control.command.UpdateAdviceCommand;
	import sg.edu.nus.dashboard.advisor.control.event.GetAdviceEvent;
	import sg.edu.nus.dashboard.advisor.control.event.UpdateAdviceEvent;
	
	public class AdvisorController extends FrontController
	{
		public function AdvisorController()
		{
			initialCommands();
		}
		
		private function initialCommands():void {
			addCommand(GetAdviceEvent.EVENT_NAME, GetAdviceCommand);
			addCommand(UpdateAdviceEvent.EVENT_NAME, UpdateAdviceCommand);
		}
	}
}